home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-02-28 | 2.7 KB | 91 lines | [TEXT/MMCC] |
- //---------------------------------------------------------------------
- //---------------------------------------------------------------------
- //
- // Horrible Rickety Shell, by Dave Johnson
- //
- // © Copyright 1985 - 1995 Anyone Who Wants It,
- // All Rights Energetically Hurled as far away from me as possible.
- // Use at your own (considerable) risk.
-
- // Prototypes for routines that app must provide, and some constants
- #include "AppInterface.h"
-
- // CodeWarrior defines the topLeft and botRight macros in MacHeaders, THINK doesn't
- #ifndef topLeft
- #define topLeft(r) (((Point *) &(r))[0])
- #define botRight(r) (((Point *) &(r))[1])
- #endif
-
- /******************
- Various Constants
- *******************/
-
- // The number of Shell Menus
- #define kNumShellMenus 3 // Apple, file, and edit
-
- // the About... Alert ID*/
- #define kAboutAlertID 128
-
- // Nifty scroll bar constants
- #define kScrollWidth 16
- #define kScrollAdjust (kScrollWidth - 1)
- /* kScrollTweak is used to compensate for scrollBars "off by one" thang. They are
- off by one on each end, which makes it 2 */
- #define kScrollTweak 2
- #define kLineScrollAmount 8
- #define kPageScrollAmount 64
-
- #define kMinWindowSize 72 // One inch minimum size
-
- // Strings
- #define kErrorStringsID 129
- #define kGenericErrorStr 1
- #define kNoMemStr 2
- #define kWimpyMachineStr 3
- #define kNoResStr 4
- #define kNoUndoStr 5
- #define kNoPrinterStr 6
- #define kBadReadStr 7
- #define kBadWriteStr 8
- #define kNoGXStr 9
-
- // Window, Dialog, and Alert IDs
- #define kWindResourceID 128
- #define kErrorAlertID 129
- #define kPrintingNowDlogID 132
- #define kSaveChangesDlogID 135
-
- /******************
- Prototypes
- *******************/
-
- // ShellMain.c
- Boolean InitShell(void);
-
- // ShellEvents.c
- void DoEvent(EventRecord *Event);
- void DoActivate(WindowPtr wind, Boolean activate);
- void DoMouse(EventRecord *eventptr);
- void DoAdjustMenus(void);
- void DoContentClick(Point thePt, WindowPtr wind, Boolean doubleClick, EventRecord *eventptr);
- void DoGrowWindow(WindowPtr wind, Point where);
- void DoZoomWindow(WindowPtr wind, short zoomDir);
- void DoKey(EventRecord *eventptr);
- void DoOS(EventRecord *eventptr);
- void DoHighLevel(EventRecord *eventPtr);
- void DoMenus(long mstuff);
- void DoApple(short item);
- void DoFile(short item);
- void DoEdit(short item);
- Boolean DoClose(WindowPtr wind);
- pascal OSErr OAPPHandler(AppleEvent *theAEvent, AppleEvent *reply, long refcon);
- pascal OSErr ODOCHandler(AppleEvent *theAEvent, AppleEvent *reply, long refcon);
- pascal OSErr PDOCHandler(AppleEvent *theAEvent, AppleEvent *reply, long refcon);
- pascal OSErr QUITHandler(AppleEvent *theAEvent, AppleEvent *reply, long refcon);
- OSErr MyGotRequiredParams (AppleEvent *theAEvent);
- void BailOut(void);
-
-
-
- // ShellUtils.c prototypes are in AppInterface.h
-